package com.wchat;

import com.wchat.server.ServerComponent;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author : willian fu
 * @date : 2021/8/24
 */
@MapperScan("com.wchat.mapper")
@SpringBootApplication
public class WchatStater implements CommandLineRunner {

    @Autowired
    private ServerComponent serverComponent;

    public static void main(String[] args) {
        SpringApplication.run(WchatStater.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        //serverComponent.initialize();
        //serverComponent.stater();
    }
}
